﻿@model System.Data.DataTable
@{
    ViewBag.Title = "权限扩展";
    ViewBag.MIndex = 2;
    ViewBag.CIndex = 1;
    ViewBag.BodyTitle = "管理员用户权限扩展设定";
    Layout = "~/Views/Shared/_LayoutEditor.cshtml";
    int FPageCurrent = TypeHelper.TypeToInt32(ViewBag.PageCurrent, 1);
    int FUserId = TypeHelper.TypeToInt32(ViewBag.UserId, 0);
}
@section Functions{
    <li><input class="button" type="button" value="返 回" onclick="GotoHref('/User/List/@FPageCurrent');" /></li>
}
@Html.AntiForgeryToken()
<div class="margin-top-20 margin-left-20">
    <ul id="extentList" class="float-left list-box scroll-y wper30">
        @if (Model.Rows.Count < 1)
        {
            <div class="field-item"><label>暂无记录。</label></div>
        }
        else
        {
            foreach (System.Data.DataRow dr in Model.Rows)
            {
                <li class="bi"><input class="button-black" type="button" value="@dr["exte_code_name"].ToString()" onclick="GetExtentMark(this,'@dr["exte_code"].ToString()',@FUserId);" /></li>
            }
        }
    </ul>
    <ul class="float-left margin-left-30 list-box" id="divExtentArea">
        <li class="field-item bi">
            <label>请选择功能模块</label>
        </li>
    </ul>
    <div class="clearfix"></div>
</div>
@section Scripts{
    <script src="@Scripts.Url("~/Scripts/user/bind-extent.js")" type="text/javascript"></script>
}